
const fs = require("fs");


 
function readWeixueO1(){
    return new Promise((resolve,reject)=>{
        fs.readFile('../为学.txt',(err,data)=>{
            if(err) reject(err);
            resolve(data);
        })
    })
}
function readWeixueO2(){
    return new Promise((resolve,reject)=>{
        fs.readFile("../weixue.txt",(err,data)=>{
            if(err) reject(err);
            resolve(data);
        })
    })
}
function readWeixueO3(){
    return new Promise((resolve,reject)=>{
        fs.readFile('../weixue01.txt',(err,data)=>{
            if(err) reject(err);
            resolve(data);
        })
    })
}



async function readAll(){
    let str01 = await readWeixueO1();
    let str02 = await readWeixueO2();
    let str03 = await readWeixueO3();


    console.log(str01.toString())
    console.log(str02.toString())
    console.log(str03.toString())
}

readAll()

































